feat: use static capture for squeezenet1_1 json#639
Open
Carousel126 wants to merge 10 commits intoPaddlePaddle:developfrom
Open
feat: use static capture for squeezenet1_1 json#639Carousel126 wants to merge 10 commits intoPaddlePaddle:developfrom
Carousel126 wants to merge 10 commits intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
Collaborator
|
请修复CodeStyle流水线 |
Author
已经重新修改,请开启测试~ |
Author
|
/re-run all-failed |
Author
|
@luotao1 可以同意我的CI重新运行吗 我已经再次提交,显示需要管理员同意~ |
JewelRoam
reviewed
Mar 6, 2026
| self.model = squeezenet1_1(pretrained=False) | ||
|
|
||
| def forward(self, *args, **kwargs): | ||
| # 兼容性抓取:优先抓取位置参数第一个,或者关键字参数名为 'inputs' 的 |
Collaborator
There was a problem hiding this comment.
有个小问题,model.py 应该是抓取脚本自动生成的,为什么会有中文注释呢?(另外,其它地方的中文注释最好也换成英文)
Collaborator
|
paddle samples应当放在独立于samples的另一个目录,请参阅GraphNet仓库。麻烦修改一下,感谢 |
Author
已经修改了~请老师看看是否正确谢谢! |
Author
|
@JewelRoam 老师,那现在这个Validate问题是否需要修改呢~似乎一直是会出现这个问题 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
New Sample
Description
为 PaddlePaddle 后端新增了 SqueezeNet 1.1 的计算图样本,并完成了标准校验流程。主要工作如下:
paddle.static.program_guard成功捕获并导出了完整的静态计算图 JSON 文件。model.py中实现了GraphModule包装,修复了验证脚本在执行前向推理时可能遇到的inputs参数缺失导致的NoneType报错。graph_net.paddle.validate的完整测试。graph_hash.txt。input_meta.py和weight_meta.py元数据。graph_net/tests/test_squeezenet1_1_extract.py,方便后续复现提取逻辑。备注:本地验证环境为 AIStudio